package com.hushow.plugin.brick.service.impl;

import com.hushow.plugin.brick.service.PaymentPlugin;
import org.springframework.stereotype.Component;

import java.util.Map;

@Component
public class AlipayPlugin implements PaymentPlugin {

    @Override
    public String getName() {
        return "alipay";
    }

    @Override
    public String pay(Map<String,Object> orderInfo) {
        // 实现支付宝支付逻辑
        return "alipay_ok";
    }

    @Override
    public boolean supports(String delimiter) {
        return "alipay".equals(delimiter);
    }
}
